package indi.zhifa.learn.jenkins.helloworld2.web.dao.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import indi.zhifa.learn.jenkins.helloworld2.web.dao.mapper.AnalysisTaskMapper;
import indi.zhifa.learn.jenkins.helloworld2.web.dao.service.IAnalysisTaskDaoService;
import indi.zhifa.learn.jenkins.helloworld2.web.entity.po.AnalysisTask;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AnalysisTaskDaoServiceImpl extends ServiceImpl<AnalysisTaskMapper, AnalysisTask> implements IAnalysisTaskDaoService {
    @Override
    public List<AnalysisTask> listByUserId(Long pUserId) {
        LambdaQueryWrapper<AnalysisTask> queryWrapper = Wrappers.<AnalysisTask>lambdaQuery()
                .eq(AnalysisTask::getUserId,pUserId);
        return baseMapper.selectList(queryWrapper);
    }
}
